#include <iostream>
#include <fstream>

int main()
{
	std::ifstream in("in.txt");
	std::ofstream out("out.txt");
	int num;
	in >> num;
	int x = 0, y = 0;
	out << x << " " << y << "\n";
	int mode = 1;
	for (int i = 1; i < num; i++, mode++)
	{
		switch(mode)
		{
		case 0:
			y = -y;
			break;
		case 1:
			x = -x + 1;
			break;
		case 2:
			y = -y + 1;
			break;
		case 3:
			x = -x;
			mode = -1;
			break;
		}
		out << x << " " << y << "\n";
	}
	in.close();
	out.close();
	return 0;
}
